package library.item;

public abstract class Item {

	public Item(String identifier, String author, String name) {
		this.identifier = identifier;
		this.author = author;
		this.name = name;
	}

	String name;
	String identifier;
	String author;
	int inventoryNumber;

	public String getData() {
		StringBuilder data = new StringBuilder();
		data.append(author).append(": ").append(getName());
		data.trimToSize();
		return data.toString();
	}

	public String getIdentifier() {
		return identifier;
	}

	public int getInventoryNumber() {
		return inventoryNumber;
	}

	public String getName() {
		return name;
	}

	public void setInventoryNumber(int number) {
		inventoryNumber = number;
	}

	@Override
	public abstract String toString();

	public abstract String getInfo();

}
